#include "Rp2TriMesh.h"

using namespace Rp2;


//---------------------------------------------------------------------------------------------------
TriMesh::TriMesh()
{	
	Type = GT_TRIMESH;
}
//---------------------------------------------------------------------------------------------------
TriMesh::TriMesh(VertexBuffer* pkVBuffer, IndexBuffer* pkIBuffer)
	:
	Triangles(pkVBuffer, pkIBuffer)
{
    Type = GT_TRIMESH;	
}
//---------------------------------------------------------------------------------------------------
TriMesh::~TriMesh()
{
	delete VBuffer;
	delete IBuffer;
	VBuffer = 0;
	IBuffer = 0;
}
//---------------------------------------------------------------------------------------------------